package klass.parse.domain.constant.factory;

import klass.parse.domain.constant.Constant;
import klass.parse.domain.constant.ConstantClassInfo;

import java.io.InputStream;

import static klass.parse.util.InputStreamUtils.*;

public class ConstantClassFactory extends BaseConstantFactory {
    @Override
    public Constant create(InputStream inputStream) {
        return new ConstantClassInfo(nextShort(inputStream));
    }
}
